from datetime import datetime


def info(message):
    __log__(message, 'info')


def warn(message):
    __log__(message, 'warn')


def error(message):
    __log__(message, 'error')


def __log__(message, level):
    now = datetime.now()
    formatted_time = now.strftime('%Y-%m-%d %H:%M:%S')
    print('{} [{}] {}'.format(formatted_time, level, message))
